package dancespeedymodelclickhouse

// DanceComposeToolChangeLog 工具流转记录
type DanceComposeToolChangeLog struct {
	Id                        uint64 `json:"id" gorm:"column:id;comment:id"`
	MongoId                   string `json:"mongoId" gorm:"column:mongo_id;type:varchar(500);not null;default:'';comment: mongo _id"`
	UserId                    string `json:"userId" gorm:"column:user_id;type:varchar(500);not null;default:'';comment: 用户id"` //用户id
	ConditionsTypeOne         int64  `json:"conditionsTypeOne" gorm:"column:conditions_type_one;type:bigint;default:0;comment:中奖一级类型"`
	ConditionsType            int64  `json:"conditionsType" gorm:"column:conditions_type;type:bigint;default:0;comment:中奖二级类型"`
	ToolNo                    int64  `json:"toolNo" gorm:"column:tool_no;type:bigint;default:0;comment:工具编号"`
	ToolNumber                int64  `json:"toolNumber" gorm:"column:tool_number;type:bigint;default:0;comment:工具数量"`
	ValidityPeriod            int64  `json:"validityPeriod" gorm:"column:validity_period;type:bigint;default:0;comment:服饰有效时长(小时)"`
	Source                    int64  `json:"source" gorm:"column:source;type:bigint;default:0;comment:来源"` //获取来源 1:抽奖直接获得;2:碎片兑换获得 3:结婚 4:后台补发 5:小时榜发放 6:日榜发放 7:周榜发放 8:旅途活动 9:星光值活动 10:道具分解
	ActivityId                int64  `json:"activityId" gorm:"column:activity_id;type:bigint;default:0;comment:活动id"`
	PetActivityId             int64  `json:"petActivityId" gorm:"column:pet_activity_id;type:bigint;default:0;comment:宠物活动id"`
	PetBossActivityId         int64  `json:"petBossActivityId" gorm:"column:pet_boss_activity_id;type:bigint;default:0;comment:宠物boss活动id"`
	ChangeType                int64  `json:"changeType" gorm:"column:change_type;type:bigint;default:0;comment:数据类型 1:增 2:减产"`
	ExchangePieceNo           int64  `json:"exchangePieceNo" gorm:"column:exchange_piece_no;type:bigint;default:0;comment:兑换碎片编号"`
	ExchangePieceNumber       int64  `json:"exchangePieceNumber" gorm:"column:exchange_piece_number;type:bigint;default:0;comment:兑换碎片数量"`
	StarStoneNo               int64  `json:"starStoneNo" gorm:"column:star_stone_no;type:bigint;default:0;comment:分解成的星钻编号"`
	StarStoneNum              int64  `json:"starStoneNum" gorm:"column:star_stone_num;type:bigint;default:0;comment:分解成的星钻数量"`
	GiveValidityPeriodSeconds int64  `json:"giveValidityPeriodSeconds" gorm:"column:give_validity_period_seconds;type:bigint;default:0;comment:赠送服饰有效时长(秒)"`
	GiveUserId                string `json:"giveUserId" gorm:"column:give_user_id;type:varchar(500);not null;default:'';comment: 赠送人用户id"`
	ReceiveUserId             string `json:"receiveUserId" gorm:"column:receive_user_id;type:varchar(500);not null;default:'';comment: 被赠送人用户id"`
	SourceElementNo           int64  `json:"sourceElementNo" gorm:"column:source_element_no;type:bigint;default:0;comment:来源散件编号"`
	SourceElementNum          int64  `json:"sourceElementNum" gorm:"column:source_element_num;type:bigint;default:0;comment:来源散件数量"`
	CreatedAt                 int64  `json:"createdAt" gorm:"column:created_at;type:bigint;default:0;comment:创建时间"`
	CreatedAtString           string `json:"createdAtString" gorm:"column:created_at_string;type:varchar(500);not null;default:'';comment: 创建时间"`
}
